import http from "../utils/services.js";
//获取用户信息
export const getUserInfo = (data) => {
	return http.request({
		method: 'GET',
		url: "/user/info",
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}
//协议
export const protocol = (data) => {
	return http.request({
		method: 'POST',
		url: '/protocol',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: false,
	})
}

//反馈类型
export const getFeedList = (data) => {
	return http.request({
		method: 'GET',
		url: "/feedback",
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}
//用户反馈
export const feedback = (data) => {
	return http.request({
		method: 'POST',
		url: "/feedback",
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}

//工作列表
export const getjoblists = () => {
	return http.request({
		method: 'GET',
		url: '/job',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}
//获取下拉列表
export const getScreen = () => {
	return http.request({
		method: 'GET',
		url: '/job/requires',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}
//邀请好友返费列表
export const get_back_balancelists = (data) => {
	return http.request({
		method: 'POST',
		url: '/invite/list',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}
//滚动通知列表
export const get_notice = () => {
	return http.request({
		method: 'GET',
		url: '/invite/inform',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}

//账户金额
export const get_account = () => {
	return http.request({
		method: 'GET',
		url: '/mine/account',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}

//提现明细
export const get_in_account = () => {
	return http.request({
		method: 'PUT',
		url: '/mine/account',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}
//推荐费明细
export const invite_in_account = () => {
	return http.request({
		method: 'POST',
		url: '/mine/account',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}

//协议规则
export const agreement_rule  = () => {
	return http.request({
		method: 'POST',
		url: '/mine/rule',
		header: {
			'Content-Type': 'application/json',
		},

		whetherToCarryToken: true,
	})
}

//职位详情
export const job_details  = (data) => {
	return http.request({
		method: 'POST',
		url: '/job/detail',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}
//工作列表
export const job_lists  = (data) => {
	return http.request({
		method: 'POST',
		url: '/job/list',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}

// //报名
// export const enlist  = (data) => {
// 	return http.request({
// 		method: 'PUT',
// 		url: '/job',
// 		header: {
// 			'Content-Type': 'application/json',
// 		},
// 		data,
// 		whetherToCarryToken: true,
// 	})
// }

//获取用户信息
export const getuserInfo  = (data) => {
	return http.request({
		method: 'GET',
		url: '/user/info',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken: true,
	})
}
//获取token
export const getToken  = (data) => {
	return http.request({
		method: 'POST',
		url: '/login/auth',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:false,
	})
}
//获取手机号
export const getphone  = (data) => {
	return http.request({
		method: 'POST',
		url: '/seek/sign',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}
//我的报名列表
export const enroll_list  = () => {
	return http.request({
		method: 'GET',
		url: '/mine/sign',
		header: {
			'Content-Type': 'application/json',
		},
		whetherToCarryToken:true,
	})
}
//邀请列表
export const inviteface_list  = () => {
	return http.request({
		method: 'GET',
		url: '/job/show',
		header: {
			'Content-Type': 'application/json',
		},
		whetherToCarryToken:true,
	})
}

//操作记录
export const operatingrecord = (data) => {
	return http.request({
		method: 'POST',
		url: '/mine/operation',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}
//获取二维码

export const getCode = (data) => {
	return http.request({
		method: 'POST',
		url: '/invite/code',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}

//获取邀请职位详情
export const getWhiteDetail = (data) => {
	return http.request({
		method: 'POST',
		url: '/job/white/detail',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:false,
	})
}

//提现
export const cash = (data) => {
	return http.request({
		method: 'POST',
		url: '/funds/cash',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}

//流水明细
export const cashetail = (data) => {
	return http.request({
		method: 'POST',
		url: '/mine/account/detail',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}

//关键字搜素
export const jobSearch = (data) => {
	return http.request({
		method: 'POST',
		url: '/job/select',
		header: {
			'Content-Type': 'application/json',
		},
		data,
		whetherToCarryToken:true,
	})
}
